package com.bdqn.Di3Zhan;

import org.apache.log4j.Logger;

public class IntermediarySubclass extends RealBuyer{
    private static Logger log = Logger.getLogger(IntermediarySubclass.class);

    public String havealook(){
        before();
        String feedback = super.havealook();
        after();
        return "看房记录：买家反馈“"+feedback+"”";
    }

    public void before(){
        log.debug("前期准备");
        log.debug("查找房源");
        log.debug("和卖家沟通时间。");
    }

    public void after(){
        log.debug("后期跟踪");
        log.debug("和买家沟通简易。");
    }

    public static void main(String[] args) {
        RealBuyer buyer = new IntermediarySubclass();
        String result = buyer.havealook();
        log.debug(result);
    }
}
